<%--
  Created by IntelliJ IDEA.
  User: 云哥
  Date: 2023/6/3
  Time: 14:10
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="doLogin" method="post">
    <p>账号：<input type="text" name="username"></p>
    <p>密码：<input type="text" name="password"></p>
    <p>角色：<select name="role">
        <option value="1">管理员</option>
        <option value="2">VIP用户</option>
        <option value="3">普通用户</option>
        <option value="4">游客用户</option>
    </select></p>
    <p>
        <button type="submit">登录</button>
    </p>
    <p style="color: red">
        <c:out value="${requestScope.errorMsg}"></c:out>
    </p>
    <%--移除指定作用域的值--%>
    <c:remove var="errorMsg" scope="request"></c:remove>
    <p style="color: red">${requestScope.errorMsg}</p>
    <p style="color: red">${requestScope.errorMsg}</p>
</form>
</body>
</html>
